//
//  BSMacro.h
//  WJBSApp
//
//  Created by 王景伟 on 2018/11/20.
//  Copyright © 2018 王景伟. All rights reserved.
//

#ifndef BSMacro_h
#define BSMacro_h

#ifdef __OBJC__

#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height

// 状态栏高度
#define BSStatusBarH [[UIApplication sharedApplication] statusBarFrame].size.height
#define BSNavBarH 44.0
// 整个导航栏高度
#define BSTopH (BSStatusBarH + BSNavBarH)
// 底部tabbar高度
#define BSTabBarH (BSStatusBarH > 20 ? 83 : 49)
// 页面高度 没有 TabBar
#define BSViewH (HEIGHT - BSTopH)


#define BSIMG(imageName) [UIImage imageNamed:imageName]
#define BSFont(font) [UIFont systemFontOfSize:font]
#define BSKeyWindow [UIApplication sharedApplication].keyWindow
#define BSRootViewController [UIApplication sharedApplication].keyWindow.rootViewController
#define BSPlaceholder BSIMG(@"defaultTagIcon")



//沙盒路径
#define  WJDOCUMENT  [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]
// 可以删除的文件夹路径
#define KESHAN [NSHomeDirectory()  stringByAppendingString:@"/Documents/可以删除"]
// 不可以删除
#define NOSHAN [NSHomeDirectory()  stringByAppendingString:@"/Documents/不可以删除"]
// 视频文件
#define VIDEO  [NSHomeDirectory()  stringByAppendingString:@"/Documents/视频"]
// 录音文件
#define AUDIO  [NSHomeDirectory()  stringByAppendingString:@"/Documents/录音"]


#endif

#endif /* BSMacro_h */
